CFLAGS += -g
src = $(wildcard ./*.c)
obj = $(patsubst %.c,%.o,$(src))
target = ts

$(target) : $(obj)
	gcc  $(obj) -o $(target) 

%.o : %.c
	gcc $(CFLAGS) -c $< -o $@

.PHONY: clean
clean:
	rm -rf $(obj) $(target)